import cv2
img = cv2.imread('car.png',cv2.IMREAD_GRAYSCALE)
cv2.imshow('car',img)
cv2.waitKey()
if k==ord('s'):
    cv2.imwrite('save_car.jpg',img)
cv2.destroyAllWindows()